import request from '@/utils/request'

// 查询打印机管理列表
export function listPrinters(query) {
  return request({
    url: '/printerManagement/printers/list',
    method: 'get',
    params: query
  })
}

// 查询打印机管理详细
export function getPrinters(serialNumber) {
  return request({
    url: '/printerManagement/printers/' + serialNumber,
    method: 'get'
  })
}

// 新增打印机管理
export function addPrinters(data) {
  return request({
    url: '/printerManagement/printers',
    method: 'post',
    data: data
  })
}

// 修改打印机管理
export function updatePrinters(data) {
  return request({
    url: '/printerManagement/printers',
    method: 'put',
    data: data
  })
}

// 删除打印机管理
export function delPrinters(serialNumber) {
  return request({
    url: '/printerManagement/printers/' + serialNumber,
    method: 'delete'
  })
}
